package com.asset.troubleticket.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@SuppressWarnings("serial")
@Entity
@Table(name="tt_category")
public class Category implements Serializable{
private Integer id;
private String name;
private String description;
private String info;
private boolean flag;

@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "tt_category_id_seq")
@SequenceGenerator(name = "tt_category_id_seq", sequenceName = "tt_category_id_seq", allocationSize = 1)
public Integer getId() {
	return id;
}
public void setId(Integer id) {
	this.id = id;
}
@Column(name="name")
public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}
@Column(name="description")
public String getDescription() {
	return description;
}

public void setDescription(String description) {
	this.description = description;
}
@Column(name="info")
public String getInfo() {
	return info;
}

public void setInfo(String info) {
	this.info = info;
}
@Column(name="flag")
public boolean isFlag() {
	return flag;
}

public void setFlag(boolean flag) {
	this.flag = flag;
}



}
